package com.zhuozhou.jdyc.main.meinfo.bean;

import com.zhuozhou.jdyc.util.apiUtil.StringUtil;

/**
 * Create by Once_ChuXy on 2021/9/28
 * Describe:
 */
public class CollectBean {


    /**
     * name : 奥里给
     * commodity_id : 27
     * spec_image : /uploads/20210724/6c02158580bbf98fbfb815480d905856.jpg
     * type : 1
     * goods_price : 11.00
     * jinyong : 0
     * up : 1
     * image : https://yuncang.dzsmxx.com/uploads/20210724/6c02158580bbf98fbfb815480d905856.jpg
     */
    /**
     * name : 埃尔曼洗衣液
     * commodity_id : 7
     * spec_image : /uploads/20210626/eaced003ce1f8c66952ecb1f14ff9fbf.jpg
     * type : 2
     * goods_price : 9.90
     * up : 1
     * integral : 15
     * id : 1373
     * image : https://yuncang.dzsmxx.com/uploads/20210626/eaced003ce1f8c66952ecb1f14ff9fbf.jpg
     */


    private String name;
    private int commodity_id;
    private String spec_image;
    private String type;
    private String goods_price;
    private String jinyong;
    private String integral;
    private int id;
    private String up;
    private String image;
    private String images;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCommodity_id() {
        return commodity_id;
    }

    public void setCommodity_id(int commodity_id) {
        this.commodity_id = commodity_id;
    }

    public String getSpec_image() {
        return spec_image;
    }

    public void setSpec_image(String spec_image) {
        this.spec_image = spec_image;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getGoods_price() {
        return goods_price;
    }

    public void setGoods_price(String goods_price) {
        this.goods_price = goods_price;
    }

    public String getJinyong() {
        return jinyong;
    }

    public void setJinyong(String jinyong) {
        this.jinyong = jinyong;
    }

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUp() {
        return up;
    }

    public void setUp(String up) {
        this.up = up;
    }

    public String getImage() {
        if (StringUtil.isNotEmpty(image))
            return image;
        else
            return images;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
